/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout'

const tableRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/index',
  alwaysShow: true, // will always show the root menu
  meta: {
    title: '系统管理',
    roles: ['appUpdate','privilege', 'role', 'dept', 'sysLog', 'baseCourt', 'baseCaseType', 'basePost', 'baseBank', 'baseWordTemplate', 'sysUser', 'role', 'sysLog', 'caseTaskParam', 'caseTaskAllot', 'caseUrgeResult'] // you can set roles in root nav
  },
  children: [
    {
      path: 'appUpdate',
      component: () => import('@/views/system/appUpdate'),
      name: 'appUpdate',
      meta: {
        title: 'app管理',
        roles: ['appUpdate'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'privilege',
      component: () => import('@/views/system/privilege'),
      name: 'privilege',
      meta: {
        title: '权限管理',
        roles: ['privilege'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'role',
      component: () => import('@/views/system/role'),
      name: 'role',
      meta: {
        title: '角色管理',
        roles: ['role'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'dept',
      component: () => import('@/views/system/dept'),
      name: 'dept',
      meta: {
        title: '部门管理',
        roles: ['dept'] // or you can only set roles in sub nav
      }
    },
    {
      path: 'sysUser',
      component: () => import('@/views/system/sysUser'),
      name: 'sysUser',
      meta: {
        title: '用户管理',
        roles: ['sysUser'] // or you can only set roles in sub nav
      }
    }
  ]
}
export default tableRouter
